package com.jjlin.chapter_5;

import java.util.*;
public class CD115{

    //字符串的调整I
    public static void modify(char[] chars){
        if(chars == null || chars.length == 0)
            return;
        int len = chars.length;
        int j = len - 1;
        for(int i = j; i >= 0; i--){
            if(chars[i] != '*')
                chars[j--] = chars[i];
        }

        while(j >= 0)
            chars[j--] = '*';
    }

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        char[] chars = str.toCharArray();
        modify(chars);
        for(int i = 0; i < chars.length; i++)
            System.out.print(chars[i]);
    }
}
